﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class RoadwayLightUpDto
    {
        /// <summary>
        /// 门店编码
        /// </summary>
        public string store_code { get; set; }

        /// <summary>
        /// default is 0
        /// </summary>
        public string is_base64 { get; set; } = "0";

        /// <summary>
        /// sign
        /// </summary>
        public string sign { get; set; }


        /// <summary>
        /// 亮灯参数
        /// </summary>
        public List<RoadwayLightUpOrderDetailDto> f1 { get; set; } = new List<RoadwayLightUpOrderDetailDto>();



    }


    public class RoadwayLightUpOrderDetailDto
    {
        public List<Tunnel_led> tunnel_led { get; set; } = new List<Tunnel_led>();

        /// <summary>
        /// 巷道灯编码
        /// </summary>
        public string esl_code { get; set; }
    }

    public class Tunnel_led
    {
        /// <summary>
        /// 
        /// </summary>
        public R r { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public B b { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public G g { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public W w { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Y y { get; set; }
    }


    public class R
    {
        /// <summary>
        /// 单次闪灯中灭灯的时间
        /// </summary>
        public int off { get; set; }

        /// <summary>
        /// 单次闪灯中亮灯的时间
        /// </summary>
        public int on { get; set; }

        /// <summary>
        /// 信道
        /// </summary>
        public int psm { get; set; }

        /// <summary>
        /// 闪灯的总时间 1，单位为毫秒
        /// </summary>
        public int work { get; set; }
    }

    public class B
    {
        /// <summary>
        /// 单次闪灯中灭灯的时间
        /// </summary>
        public int off { get; set; }

        /// <summary>
        /// 单次闪灯中亮灯的时间
        /// </summary>
        public int on { get; set; }

        /// <summary>
        /// 信道
        /// </summary>
        public int psm { get; set; }

        /// <summary>
        /// 闪灯的总时间 1，单位为毫秒
        /// </summary>
        public int work { get; set; }
    }

    public class G
    {
        /// <summary>
        /// 单次闪灯中灭灯的时间
        /// </summary>
        public int off { get; set; }

        /// <summary>
        /// 单次闪灯中亮灯的时间
        /// </summary>
        public int on { get; set; }

        /// <summary>
        /// 信道
        /// </summary>
        public int psm { get; set; }

        /// <summary>
        /// 闪灯的总时间 1，单位为毫秒
        /// </summary>
        public int work { get; set; }
    }

    public class W
    {
        /// <summary>
        /// 单次闪灯中灭灯的时间
        /// </summary>
        public int off { get; set; }

        /// <summary>
        /// 单次闪灯中亮灯的时间
        /// </summary>
        public int on { get; set; }

        /// <summary>
        /// 信道
        /// </summary>
        public int psm { get; set; }

        /// <summary>
        /// 闪灯的总时间 1，单位为毫秒
        /// </summary>
        public int work { get; set; }
    }


    public class Y
    {
        /// <summary>
        /// 单次闪灯中灭灯的时间
        /// </summary>
        public int off { get; set; }

        /// <summary>
        /// 单次闪灯中亮灯的时间
        /// </summary>
        public int on { get; set; }

        /// <summary>
        /// 信道
        /// </summary>
        public int psm { get; set; }

        /// <summary>
        /// 闪灯的总时间 1，单位为毫秒
        /// </summary>
        public int work { get; set; }
    }
}
